import 'package:byw_blog/pages/SetingPage.dart';
import 'package:flutter/material.dart';

class MyPage extends StatefulWidget {
  const MyPage({Key? key}) : super(key: key);

  @override
  State<MyPage> createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("我的"),
        actions: [
          IconButton(
              onPressed: () {
                Navigator.push(
                    context, MaterialPageRoute(builder: (context) => SetingPage()));
                // Navigator.pushNamed(context, '/search');
              },
              icon: const Icon(Icons.settings))
        ],
      ),
      body: Container(
        width: double.infinity,
        child: Padding(
          padding: const EdgeInsets.all(10),
          child: Column(
            children: [
              const SizedBox(
                height: 50,
              ),
              SizedBox(
                height: 100,
                width: 100,
                child: CircleAvatar(
                  backgroundColor: Colors.blue,
                  child: Container(
                    width: 95,
                    height: 95,
                    child: const CircleAvatar(
                      radius: 100,
                      backgroundImage: NetworkImage(
                          "https://profile.csdnimg.cn/5/2/E/1_baidu_41616022"),
                    ),
                  ),
                ),
              ),
              const SizedBox(
                height: 10,
              ),
              const Text(
                "宾有为",
                style: TextStyle(fontSize: 18),
              ),
              const SizedBox(
                height: 50,
              ),
              Row(
                children: const [
                  Text(
                    "性\t\t\t\t\t\t\t\t\t\t别：",
                    style: TextStyle(fontSize: 12, color: Colors.grey),
                  ),
                  Text(
                    "男",
                    style: TextStyle(fontSize: 12),
                  )
                ],
              ),
              Row(
                children: const [
                  Text(
                    "手\t\t\t机\t\t\t号：",
                    style: TextStyle(fontSize: 12, color: Colors.grey),
                  ),
                  Text(
                    "13624563258",
                    style: TextStyle(fontSize: 12),
                  )
                ],
              ),
              Row(
                children: const [
                  Text(
                    "个人简介：",
                    style: TextStyle(fontSize: 12, color: Colors.grey),
                  ),
                  Expanded(
                      child: Text(
                    "个人参与开发并上线的产品有小程序、uni-app、web、Android，对Android较为热爱，目前从事Android开发工程师的工作，业余也在研究着各种与App相关的技术，如Flutter、HarmonyOS、后端等。 （献给自己）不忘初心，负重前行。只为23岁那个回顾过去而不后悔之前所做的傻事的自己，加油！",
                    style: TextStyle(fontSize: 12),
                  ))
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}
